#*******************************************************************
#* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        *
#*                                                                 *
#*  NOTE      = http协议分析
#*  DATE      =
#*******************************************************************
#共通参数
include         ../../../dist/dev/include/apmmodule/Makefile_comm.mk

INCLUDES        =  -I. -I$(LIB_I_APM_COMM) -I$(LIB_I_APM_MODULE)
LIBS            = -lz -lnghttp2
CFLAGS          += -fPIC `xml2-config --cflags` -D_GNU_SOURCE

CFLAGS          += $(CFLAGS_EXT)
CFLAGS          += $(CFLAGS_UTEST)

#-DFRDBG_XML_DATA_OUTPUT               xml信息出力到文件

LIBS            += $(LIBS_EXT)

include         $(APMMODULE)/Makefile_config.mk

MODULE_VERSION :=$(COMM_FRAMEWORK_VER).$(L7_VERSION)
TARGET_LIB_VER :=$(L7_NAME)_$(MODULE_VERSION).so

MODULE_SOURCE_FILES     := $(shell find . -name "*.c" -o -name "*.h" | sed 's|./||')

all: prepare $(TARGET_LIB_VER)

$(TARGET_LIB_VER): $(MODULE_SOURCE_FILES)
	$(CX) -shared $(CFLAGS) $(filter %.c,$(MODULE_SOURCE_FILES)) $(LIB_A_APM_MODULE) $(LIB_A_APM_COMM) -o $@ $(INCLUDES) $(LIBS)

include         $(APMMODULE)/Makefile_pre.mk

include         $(APMMODULE)/Makefile_dist.mk

#EOF

